package com.yunyike.constants;

import java.util.HashMap;
import java.util.Map;

public class CommonConstant {

	
	/***************数字共通******************/
	public static final int NUMBER_0	 = 0;
	public static final int NUMBER_1	 = 1;
	public static final int NUMBER_2	 = 2;
	public static final int NUMBER_3	 = 3;
	public static final int NUMBER_4	 = 4;
	public static final int NUMBER_5	 = 5;
	public static final int NUMBER_6	 = 6;
	public static final int NUMBER_7	 = 7;
	public static final int NUMBER_8	 = 8;
	public static final int NUMBER_9	 = 9;
	
	/***************筛选/审核--》状态******************/
	public static final int SKU_UNTREATED = 0;//未处理
	public static final int SKU_STOCKPILING_REVIEW = 1;//待审核囤货
	public static final int SKU_STOCKPILING	 = 2;//囤货
	public static final int SKU_STOCKPILING_BACK	 = 3;//退回
	
	private static Map<Integer,String> skuStatusMap = new HashMap<Integer,String>();
	public static Map<Integer,String> getSkuStatusMap(){
		if(skuStatusMap.size()>0)skuStatusMap.clear();
		skuStatusMap.put(SKU_UNTREATED, "未囤货");
		skuStatusMap.put(SKU_STOCKPILING_REVIEW, "待审核");
		skuStatusMap.put(SKU_STOCKPILING, "已囤货");
		skuStatusMap.put(SKU_STOCKPILING_BACK, "已退回");
		return skuStatusMap;
	}
	
	/*************供货单商品状态MERCHANDISE_STATU***************/
	
	public static final int MERCHANDISE_UNTREATED = 0;//未处理
	public static final int MERCHANDISE_SAVING= 1;//保存中
	public static final int MERCHANDISE_SAVED = 2;//已保存
	public static final int MERCHANDISE_REVIEW = 3;//待审核发布
	public static final int MERCHANDISE_ONSALE = 4;//已发布
	public static final int MERCHANDISE_BACK = 5;//已退回
	
	private static Map<Integer,String> statusMap = new HashMap<Integer,String>();
	public static Map<Integer,String> getStatusMap(){
		if(statusMap.size()>0)statusMap.clear();
		statusMap.put(MERCHANDISE_UNTREATED, "未处理");
		statusMap.put(MERCHANDISE_SAVING, "保存中");
		statusMap.put(MERCHANDISE_SAVED, "已保存");
		statusMap.put(MERCHANDISE_REVIEW, "待审核");
		statusMap.put(MERCHANDISE_ONSALE, "已发布");
		statusMap.put(MERCHANDISE_BACK, "已退回");
		return statusMap;
	}
}
